import { BaseEntity } from "./base";
import { RoleEntity } from "./role";

export const UserFields = `
name
account
sys_roleId
loginId
isOrgan
email
province
city
`
export interface UserEntity extends BaseEntity {
  name: string
  account: string
  sys_roleId: number
  loginId: string
  role?: RoleEntity
  isOrgan: boolean
  email: string
  province: string
  city: string
}

export const UserPowerFields = `
sys_test_chapterId
sys_userId
start_time
end_time
`
export interface UserPowerEntity extends BaseEntity {
  sys_test_chapterId: number
  sys_userId: number
  start_time: Date
  end_time: Date
}